import Vue from 'vue'
import VueRouter from 'vue-router'
import {Routers} from './Kevin'
import {ContentManagement} from './hxy'
Vue.use(VueRouter)

const routes = [
  ...Routers,
  ...ContentManagement,
]
const router = new VueRouter({
  routes
})

router.$addRoutes = (params) => {
  router.matcher = new VueRouter({ mode: 'history' }).matcher
  router.addRoutes(params)
}
export default router
